﻿using MediatR;
using ShineTech.Domain.SeedWork;
using System;
using System.Collections.Generic;
namespace ShineTech.Web.Missons.Commands
{
    public class MissonsByFiltersPageQuery : IRequest<PageData<MissonDTO>>
    {
        public string Name { get; set; }
        public Guid? UserId { get; set; }
        public bool? IsComplete { get; set; }
        public int PageIndex { get; private set; }
        public int PageSize { get; private set; }
        public Guid KanbanId { get; private set; }

        public MissonsByFiltersPageQuery(string name, Guid? userId, Guid kanbanId, int pageIndex, int pageSize)
        {
            Name = name ?? string.Empty;
            KanbanId = kanbanId;
            UserId = userId;
            PageIndex = pageIndex;
            PageSize = pageSize;
        }
    }
}
